From: Kenichi Handa Date: Wed, 27 Jan 2010 05:17:35 +0000 (+0900) Subject: regex.c (analyse_first): Fix setting of fastmap for unibyte pattern string. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~7006^2~86 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=807c62227c535d28819d9c153d6a468bf3088faf;p=emacs.git regex.c (analyse_first): Fix setting of fastmap for unibyte pattern string. --- 807c62227c535d28819d9c153d6a468bf3088faf diff --cc src/ChangeLog index 17c6a137e55,17c6a137e55..2448967c52d --- a/src/ChangeLog +++ b/src/ChangeLog @@@ -1,3 -1,3 +1,8 @@@ ++2010-01-27 Kenichi Handa ++ ++ * regex.c (analyse_first): Fix setting of fastmap for unibyte ++ pattern string. ++ 2010-01-25 Jan Djärv * xfns.c (Fx_create_frame): If frame height is too big, try diff --cc src/regex.c index 0dbfa5971b3,0dbfa5971b3..bb921a5b519 --- a/src/regex.c +++ b/src/regex.c @@@ -4083,8 -4083,8 +4083,7 @@@ analyse_first (p, pend, fastmap, multib the corresponding multibyte character. */ int c = RE_CHAR_TO_MULTIBYTE (p[1]); -- if (! CHAR_BYTE8_P (c)) -- fastmap[CHAR_LEADING_CODE (c)] = 1; ++ fastmap[CHAR_LEADING_CODE (c)] = 1; } } break;